package com.lry.jvm.classfile.constantpool;

import com.lry.jvm.classfile.ClassReader;

public class ConstantDoubleInfo implements ConstantInfo {

    private Double value;

    public ConstantDoubleInfo(ClassReader reader) {
        value = reader.next2U4Double(); //u4
    }

    public Double getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Double:" + value;
    }

}